package com.qingchuan.controller;

import com.qingchuan.service.DrawGraphService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author m17610881257@163.com
 * @version : DrawGraphContoller.java, v 0.1 2022-05-25 00:13 m17610881257@163.com Exp $$
 * @Description 绘图
 */
@RestController
@RequestMapping("/graph")
public class DrawGraphContoller {

    @Autowired
    private DrawGraphService drawGraphService;

    @PostMapping("/draw")
    public String draw(@RequestParam(value = "graphCode") Integer graphCode) {
        return drawGraphService.draw(graphCode);
    }
}
